package common;

import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;

//工具类，用于请求传送
public class Message implements Serializable {
    private static final long serialVersionUID = 2L;

    private String type;//消息类型
    private Object data;//消息数据
    private boolean state;//消息状态
    private User user;//用户类
    private String email;//邮件
    private Group group;//群聊
    private Communication communication;//私聊类
    private File headimage;//头像
    private ArrayList<User> friendList;//好友列表
    private ArrayList<Group> groupList;//群聊列
    private ArrayList<Group> owngroupList;//其他群聊列
    private ArrayList<Information> qilist;
    private ArrayList<Information> ilist;
    private ArrayList<Communication> fclist;
    private ArrayList<Communication> qclist;
    private ArrayList<Group> qmslist;//群成员状态
    private ArrayList<User> qmlist;//群成员信息

    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }

    public Object getData() {
        return data;
    }
    public void setData(Object data) {
        this.data = data;
    }

    public boolean isState() {
        return state;
    }
    public void setState(boolean state) {
        this.state = state;
    }

    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }

    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    public Group getGroup() {
        return group;
    }
    public void setGroup(Group group) {
        this.group = group;
    }

    public Communication getCommunication() {
        return communication;
    }
    public void setCommunication(Communication communication) {
        this.communication = communication;
    }

    public File getHeadimage() {
        return headimage;
    }
    public void setHeadimage(File headimage) {
        this.headimage = headimage;
    }

    public ArrayList<User> getFriendList() {
        return friendList;
    }
    public void setFriendList(ArrayList<User> friendList) {
        this.friendList = friendList;
    }

    public ArrayList<Group> getOwngroupList() {
        return owngroupList;
    }
    public void setOwngroupList(ArrayList<Group> owngroupList) {
        this.owngroupList = owngroupList;
    }

    public ArrayList<Group> getGroupList() {
        return groupList;
    }
    public void setGroupList(ArrayList<Group> groupList) {
        this.groupList = groupList;
    }

    public ArrayList<Information> getQilist() {
        return qilist;
    }
    public void setQilist(ArrayList<Information> qilist) {
        this.qilist = qilist;
    }

    public ArrayList<Information> getIlist() {
        return ilist;
    }
    public void setIlist(ArrayList<Information> ilist) {
        this.ilist = ilist;
    }

    public ArrayList<Communication> getFclist() {
        return fclist;
    }
    public void setFclist(ArrayList<Communication> fclist) {
        this.fclist = fclist;
    }

    public ArrayList<Communication> getQclist() {
        return qclist;
    }
    public void setQclist(ArrayList<Communication> qclist) {
        this.qclist = qclist;
    }

    public ArrayList<Group> getQmslist() {
        return qmslist;
    }
    public void setQmslist(ArrayList<Group> qmslist) {
        this.qmslist = qmslist;
    }

    public ArrayList<User> getQmlist() {
        return qmlist;
    }
    public void setQmlist(ArrayList<User> qmlist) {
        this.qmlist = qmlist;
    }
}
